function BpmnMailTaskPaletteProvider(palette, create, elementFactory) {
  this._create = create;
  this._elementFactory = elementFactory;
  palette.registerProvider(this)
}

BpmnMailTaskPaletteProvider.prototype = {
  getPaletteEntries() {
    var elementFactory = this._elementFactory,
      create = this._create;

    function startCreate(event) {
      var serviceTaskShape = elementFactory.create('shape', {
        type: 'bpmn:BusinessRuleTask',
      });
      create.start(event, serviceTaskShape);
    }

    return {
      'demo-separator': {
        group: 'customer',
        separator: true
      },
      'create-mail-task': {
        group: 'customer',
        title: '定制任务',
        name: '我是定制',
        className: 'bpmn-icon-business-rule-task demo-customer-icon',
        action: {
          dragstart: startCreate,
          click: startCreate
        }
      }
    }
  }
}
BpmnMailTaskPaletteProvider.prototype.constructor = BpmnMailTaskPaletteProvider

export default BpmnMailTaskPaletteProvider
